package top.lgd.pojo.entity.person;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 个人资产负债表
 *
 * @author YYJ
 * @version 1.0
 * @since 2024/5/6 14:42
 */
@Getter
@Setter
@TableName("person_balance")
public class Balance extends LgdEntity {

    /**
     * 资产月份(YYYY-MM)
     * unique [dataUserId]
     */
    @Size(max = 7)
    private String balanceMonth;

    /**
     * 账户余额
     */
    private BigDecimal financeAmount;

    /**
     * 借出金额
     */
    private BigDecimal claimAmount;

    /**
     * 消费金额
     */
    private BigDecimal creditAmount;

    /**
     * 借入金额
     */
    private BigDecimal debtAmount;

    /**
     * 贷入金额
     */
    private BigDecimal loanAmount;

    /**
     * 总资产
     */
    private BigDecimal assetSum;

    /**
     * 总负债
     */
    private BigDecimal debtSum;

    /**
     * 净资产
     */
    private BigDecimal netAssetSum;

    /**
     * 净增长
     */
    private BigDecimal netGrowthAmount;
}